#include "htmlelement.h"
#include "htmlattributelist.h"
#include "htmlattribute.h"
#include "body.h"

HtmlElement::HtmlElement(const QString& tag, const QString& varName, HtmlAttributeList* attribs, Body* body, const YYLTYPE& loc)
        : Namespace(loc), m_tag(tag), m_varName(varName), m_attribs(attribs), m_body(body)
{
    appendChild( attribs );
    appendChild( body );
}

Node* HtmlElement::getEntry( const QString& name )
{
    if ( m_varName == name )
        return this;
    return 0;
}
